#Primenumbers[java]
package com;
public class primenumbers
{
public static void main(String[] args)
{
for(int i=1; i<=20; i++)
{
int count = 0;
for(int j=1;j<15;j++)
{
if(i%j == 0)
count++;
}
if(count <= 2)
System.out.println(i);
}
}
}

seen from Armenia

seen from United States
seen from United States
seen from Thailand
seen from Italy

seen from United States

seen from United States
seen from Armenia
seen from China

seen from United States

seen from United States
seen from China
seen from United Kingdom
seen from United Kingdom
seen from China

seen from United States
seen from Armenia

seen from United States

seen from Germany
seen from United States
#Primenumbers[java]
package com;
public class primenumbers
{
public static void main(String[] args)
{
for(int i=1; i<=20; i++)
{
int count = 0;
for(int j=1;j<15;j++)
{
if(i%j == 0)
count++;
}
if(count <= 2)
System.out.println(i);
}
}
}